package com.itheima.array.create;

/**
 * @author Anomaly
 * @date 2022/11/29 20:53
 */

/**
 * 数组的定义和访问
 */
public class ArrayDemo {
    public static void main(String[] args) {
        int[] ages = {4, 5, 6};
        System.out.println("ages = " + ages);

        System.out.println("ages[2] = " + ages[2]);

        System.out.println("ages.length = " + ages.length);

    }
}
